package com.demo.math.app;

import com.demo.math.templateabstract.QuestionBankTemplate;
import com.demo.math.templateimpl.QuestionBankEasyTemplate;
import com.demo.math.templateimpl.QuestionBankFill2Template;
import com.demo.math.templateimpl.QuestionBankJudgeTemplate;
import com.demo.math.templateimpl.QuestionBankMixTemplate;

public class Application {
    public static void main(String[] args) throws InterruptedException {
        Application application = new Application();
//
////        application.testEasy();
////        Thread.sleep(1200);
////        application.testJudge();
////        Thread.sleep(1200);
        application.testMix();
    }

    public void testEasy(){
        QuestionBankTemplate questionBankTemplate = new QuestionBankEasyTemplate(10,20);
        questionBankTemplate.execute();
    }

    public void testFill2(){
        QuestionBankTemplate questionBankTemplate = new QuestionBankFill2Template(4);
        questionBankTemplate.execute();
    }

    public void testMix(){
        QuestionBankTemplate questionBankTemplate = new QuestionBankMixTemplate(30);
        questionBankTemplate.execute();
    }

    public void testJudge(){
        QuestionBankTemplate questionBankTemplate = new QuestionBankJudgeTemplate(4);
        questionBankTemplate.execute();
    }

//    public static void main(String[] args) {
//        double sqrt = Math.sqrt(101);
//        System.out.println(sqrt);
//    }
}
